# import os
from flask import Flask
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from flask_moment import Moment


app = Flask("sayhello")
# print(app.root_path)
# print(os.path.dirname(app.root_path))

app.config.from_pyfile('settings.py')
app.jinja_env.trim_blocks = True  # 删除Jinja2模板中的代码块末尾的换行符
app.jinja_env.lstrip_blocak = True  # 删除Jinja2模版中代码块起始位置的空白字符

db = SQLAlchemy(app)
bootstrap = Bootstrap(app)
moment = Moment(app)      # 全局
from sayhello import views, errors, commands
